<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
var a = 'a981S^y_kx-23UEC%ih222daYk2jhds';
//[a981S,y_kx,23UEC,ih222daYk2jhds]
//a981Sykx23UECih222daYk2jhds
//,,,,,y,k,x,,,,i,h,d,,,k,j,h,d,s,
alert(a.match(/\w+/g));

//ykx,ihd,kjhds
//yk,x,ih,d,kj,hd,s
//yk,ih,kj,hd
//alert(a.indexOf('y'));
//var l = 'y';
//var c = new RegExp(l);
//var c = new RegExp('xueci','i');
/*
/xueci/i
*/
//['1']
//y,k,x,i,h,d,k,j,h,d,s
//alert(a.search(/y/));
</script>
</body>
</html>